package com.study.concurrent.A_ThreadManagement.f_WaitingForThreadInterrupt;

import java.util.Date;

/**
 * Created by 赵超 on 2017/3/18.
 */
public class Main {
    public static void main(String[] args) {
        DataSourcesLoader dsLoader = new DataSourcesLoader();
        Thread thread_1 = new Thread(dsLoader, "DataSourcesThread");
        NetworkConnectionsLoader ncLoader = new NetworkConnectionsLoader();
        Thread thread_2 = new Thread(ncLoader, "NetworkConnections");
        thread_1.start();
        thread_2.start();
        try {
            thread_1.join();
            thread_2.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.printf("Main : 配置加载完毕 : %s\n", new Date());
    }
}
